package com.jycode.commons.dao;

import java.util.Iterator;
import java.util.List;

import com.jycode.commons.genericdao.GenericDAO2;
import com.jycode.commons.model.SysUser;

public interface SysUserDAO extends GenericDAO2<SysUser, Long> {

	public abstract List<SysUser> findByName(String name);

	public abstract List<SysUser> findByEmail(String name);

	public abstract List<SysUser> findByNamePassword(String name, String password);

	public abstract Iterator<SysUser> iterateByName(String namesLikePattern);

	public abstract SysUser doLogin(String name, String password);

}